<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
    <title>PHPXRef 0.7.1 : Tomato Project : /core/v0.1/ext/verimg.class.php source</title>
    <link rel="stylesheet" href="../../../sample.css" type="text/css">
    <link rel="stylesheet" href="../../../sample-print.css" type="text/css" media="print">
    <style id="hilight" type="text/css"></style>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000" link="#801800" vlink="#300540" alink="#ffffff">
<table class="pagetitle" width="100%">
	<tr>
        <td valign="top" class="pagetitle">
            [ <a href="../../../index.html">Index</a> ] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_classes/index.html">Classes</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_functions/index.html">Functions</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_variables/index.html">Variables</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_constants/index.html">Constants</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_tables/index.html">Tables</a>]
        </td>
        <td align="right" class="pagetitle">
		    <h2 style="margin-bottom: 0px">PHP Cross Reference of Tomato Project</h2>
	    </td>
    </tr>
</table>


<!-- Generated by PHPXref 0.7.1 at Thu Sep 10 15:54:52 2020 -->
<!-- PHPXref (c) 2000-2010 Gareth Watts - gareth@omnipotent.net -->
<!-- http://phpxref.sourceforge.net/ -->

<script src="../../../phpxref.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
ext='.html';
relbase='../../../';
subdir='core/v0.1/ext';
filename='verimg.class.php.source.html';
cookiekey='phpxref';
handleNavFrame(relbase, subdir, filename);

// -->
</script>
<script language="JavaScript" type="text/javascript">
if (gwGetCookie('xrefnav')=='off')
  document.write('<p class="navlinks">[ <a href="javascript:navOn()">Show Explorer<\/a> ]<\/p>');
else
  document.write('<p class="navlinks">[ <a href="javascript:navOff()">Hide Explorer<\/a> ]<\/p>');
</script>
<noscript>
<p class="navlinks">
[ <a href="../../../nav.html" target="_top">Show Explorer</a> ]
[ <a href="index.html" target="_top">Hide Navbar</a> ]
</p>
</noscript>
<script language="JavaScript" type="text/javascript">
<!--

document.writeln('<table align="right" class="searchbox-link"><tr><td><a class="searchbox-link" href="javascript:void(0)" onMouseOver="showSearchBox()">Search</a><br>');
document.writeln('<table border="0" cellspacing="0" cellpadding="0" class="searchbox" id="searchbox">');
document.writeln('<tr><td class="searchbox-title">');
document.writeln('<a class="searchbox-title" href="javascript:showSearchPopup()">Search History +</a>');
document.writeln('<\/td><\/tr>');

document.writeln('<tr><td class="searchbox-body" id="searchbox-body">');
document.writeln('<form name="search" style="margin:0px; padding:0px" onSubmit=\'return jump()\'>');
document.writeln('<a class="searchbox-body" href="../../../_classes/index.html">Class<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="classname"><br>');
document.writeln('<a id="funcsearchlink" class="searchbox-body" href="../../../_functions/index.html">Function<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="funcname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_variables/index.html">Variable<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="varname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_constants/index.html">Constant<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="constname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_tables/index.html">Table<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="tablename"><br>');
document.writeln('<input type="submit" class="searchbox-button" value="Search">');
document.writeln('<\/form>');
document.writeln('<\/td><\/tr><\/table>');
document.writeln('<\/td><\/tr><\/table>');
// -->
</script>
<div id="search-popup" class="searchpopup"><p id="searchpopup-title" class="searchpopup-title">title</p><div id="searchpopup-body" class="searchpopup-body">Body</div><p class="searchpopup-close"><a href="javascript:gwCloseActive()">[close]</a></p></div>
<h2 class="listing-heading"><a href="./index.html">/core/v0.1/ext/</a> -> <a href="verimg.class.php.html">verimg.class.php</a> (source)</h2>
<div class="listing">
<p class="viewlinks">[<a href="verimg.class.php.html">Summary view</a>]
[<a href="javascript:window.print();">Print</a>]
[<a href="verimg.class.php.source.txt" target="_new">Text view</a>]
</p>
<pre>
<a name="l1"><span class="linenum">   1</span></a>  &lt;?php
<a name="l2"><span class="linenum">   2</span></a>  namespace ext;
<a name="l3"><span class="linenum">   3</span></a>  
<a name="l4"><span class="linenum">   4</span></a>  <span class="keyword">class </span><a class="class" onClick="logClass('verimg')" href="../../../_classes/verimg.html" onMouseOver="classPopup(event,'verimg')">verimg</a>
<a name="l5"><span class="linenum">   5</span></a>  {
<a name="l6"><span class="linenum">   6</span></a>      private <a class="var it15" onMouseOver="hilite(15)" onMouseOut="lolite()" onClick="logVariable('width')" href="../../../_variables/width.html">$width</a>; <span class="comment">//验证码图片的宽度</span>
<a name="l7"><span class="linenum">   7</span></a>      private <a class="var it16" onMouseOver="hilite(16)" onMouseOut="lolite()" onClick="logVariable('height')" href="../../../_variables/height.html">$height</a>; <span class="comment">//验证码图片的高度</span>
<a name="l8"><span class="linenum">   8</span></a>      private <a class="var it17" onMouseOver="hilite(17)" onMouseOut="lolite()" onClick="logVariable('codeNum')" href="../../../_variables/codeNum.html">$codeNum</a>; <span class="comment">//验证码字符的个数</span>
<a name="l9"><span class="linenum">   9</span></a>      private <a class="var it18" onMouseOver="hilite(18)" onMouseOut="lolite()" onClick="logVariable('disturbColorNum')" href="../../../_variables/disturbColorNum.html">$disturbColorNum</a>; <span class="comment">//干扰元素数量</span>
<a name="l10"><span class="linenum">  10</span></a>      private <a class="var it19" onMouseOver="hilite(19)" onMouseOut="lolite()" onClick="logVariable('vercode')" href="../../../_variables/vercode.html">$vercode</a>; <span class="comment">//验证码字符</span>
<a name="l11"><span class="linenum">  11</span></a>      private <a class="var it20" onMouseOver="hilite(20)" onMouseOut="lolite()" onClick="logVariable('image')" href="../../../_variables/image.html">$image</a>; <span class="comment">//验证码资源</span>
<a name="l12"><span class="linenum">  12</span></a>      private <a class="var it21" onMouseOver="hilite(21)" onMouseOut="lolite()" onClick="logVariable('fontSize')" href="../../../_variables/fontSize.html">$fontSize</a>; <span class="comment">//字符尺寸</span>
<a name="l13"><span class="linenum">  13</span></a>      private <a class="var it22" onMouseOver="hilite(22)" onMouseOut="lolite()" onClick="logVariable('mime')" href="../../../_variables/mime.html">$mime</a>; <span class="comment">//资源类型</span>
<a name="l14"><span class="linenum">  14</span></a>      private <a class="var it23" onMouseOver="hilite(23)" onMouseOut="lolite()" onClick="logVariable('act')" href="../../../_variables/act.html">$act</a>;
<a name="l15"><span class="linenum">  15</span></a>      private <a class="var it24" onMouseOver="hilite(24)" onMouseOut="lolite()" onClick="logVariable('image_data')" href="../../../_variables/image_data.html">$image_data</a>;
<a name="l16"><span class="linenum">  16</span></a>      private <a class="var it25" onMouseOver="hilite(25)" onMouseOut="lolite()" onClick="logVariable('ttf')" href="../../../_variables/ttf.html">$ttf</a>;
<a name="l17"><span class="linenum">  17</span></a>  
<a name="l18"><span class="linenum">  18</span></a>      <span class="comment">/**</span>
<a name="l19"><span class="linenum">  19</span></a>  <span class="comment">     * 构造方法</span>
<a name="l20"><span class="linenum">  20</span></a>  <span class="comment">     * @param    int    $width        设置验证码图片的宽度</span>
<a name="l21"><span class="linenum">  21</span></a>  <span class="comment">     * @param    int    $height        设置验证码图片的高度</span>
<a name="l22"><span class="linenum">  22</span></a>  <span class="comment">     * @param    int    $codeNum    设置验证码中字符的个数</span>
<a name="l23"><span class="linenum">  23</span></a>  <span class="comment">     * @param    int    $fontSize    设置验证码中字符的尺寸</span>
<a name="l24"><span class="linenum">  24</span></a>  <span class="comment">     */</span>
<a name="l25"><span class="linenum">  25</span></a>      public function <a class="function" onClick="logFunction('__construct')" href="../../../_functions/__construct.html" onMouseOver="funcPopup(event,'__construct')">__construct</a>(<a class="var it15" onMouseOver="hilite(15)" onMouseOut="lolite()" onClick="logVariable('width')" href="../../../_variables/width.html">$width</a> = 100, <a class="var it16" onMouseOver="hilite(16)" onMouseOut="lolite()" onClick="logVariable('height')" href="../../../_variables/height.html">$height</a> = 38, <a class="var it17" onMouseOver="hilite(17)" onMouseOut="lolite()" onClick="logVariable('codeNum')" href="../../../_variables/codeNum.html">$codeNum</a> = 4, <a class="var it21" onMouseOver="hilite(21)" onMouseOut="lolite()" onClick="logVariable('fontSize')" href="../../../_variables/fontSize.html">$fontSize</a> = 14)
<a name="l26"><span class="linenum">  26</span></a>      {
<a name="l27"><span class="linenum">  27</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('width')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/width.html">width</a> = <a class="var it15" onMouseOver="hilite(15)" onMouseOut="lolite()" onClick="logVariable('width')" href="../../../_variables/width.html">$width</a>;
<a name="l28"><span class="linenum">  28</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('height')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/height.html">height</a> = <a class="var it16" onMouseOver="hilite(16)" onMouseOut="lolite()" onClick="logVariable('height')" href="../../../_variables/height.html">$height</a>;
<a name="l29"><span class="linenum">  29</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('codeNum')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/codeNum.html">codeNum</a> = <a class="var it17" onMouseOver="hilite(17)" onMouseOut="lolite()" onClick="logVariable('codeNum')" href="../../../_variables/codeNum.html">$codeNum</a>;
<a name="l30"><span class="linenum">  30</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('fontSize')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/fontSize.html">fontSize</a> = <a class="var it21" onMouseOver="hilite(21)" onMouseOut="lolite()" onClick="logVariable('fontSize')" href="../../../_variables/fontSize.html">$fontSize</a>;
<a name="l31"><span class="linenum">  31</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('ttf')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/ttf.html">ttf</a> = <a class="constant" onClick="logConstant('P_CORE')" href="../../../_constants/P_CORE.html" onMouseOver="constPopup(event,'P_CORE')">P_CORE</a> . 'ext/ttfs/1.ttf';
<a name="l32"><span class="linenum">  32</span></a>      }
<a name="l33"><span class="linenum">  33</span></a>      public function <a class="function" onClick="logFunction('Set')" href="../../../_functions/set.html" onMouseOver="funcPopup(event,'set')">Set</a>(<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>, <a class="var it27" onMouseOver="hilite(27)" onMouseOut="lolite()" onClick="logVariable('value')" href="../../../_variables/value.html">$value</a>)
<a name="l34"><span class="linenum">  34</span></a>      {
<a name="l35"><span class="linenum">  35</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a> = <a class="var it27" onMouseOver="hilite(27)" onMouseOut="lolite()" onClick="logVariable('value')" href="../../../_variables/value.html">$value</a>;
<a name="l36"><span class="linenum">  36</span></a>      }
<a name="l37"><span class="linenum">  37</span></a>      public function <a class="function" onClick="logFunction('Create')" href="../../../_functions/create.html" onMouseOver="funcPopup(event,'create')">Create</a>()
<a name="l38"><span class="linenum">  38</span></a>      {
<a name="l39"><span class="linenum">  39</span></a>          <a class="var it28" onMouseOver="hilite(28)" onMouseOut="lolite()" onClick="logVariable('tp')" href="../../../_variables/tp.html">$tp</a> = <a class="phpfunction" onClick="logFunction('imagetypes')" href="../../../_functions/imagetypes.html" onMouseOver="phpfuncPopup(event,'imagetypes')">imagetypes</a>();
<a name="l40"><span class="linenum">  40</span></a>          if (<a class="var it28" onMouseOver="hilite(28)" onMouseOut="lolite()" onClick="logVariable('tp')" href="../../../_variables/tp.html">$tp</a> &amp; IMG_GIF) {
<a name="l41"><span class="linenum">  41</span></a>              (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('act')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/act.html">act</a> = 'imagegif') &amp;&amp; <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mime')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mime.html">mime</a> = 'image/gif';
<a name="l42"><span class="linenum">  42</span></a>          } elseif (<a class="var it28" onMouseOver="hilite(28)" onMouseOut="lolite()" onClick="logVariable('tp')" href="../../../_variables/tp.html">$tp</a> &amp; IMG_JPG) {
<a name="l43"><span class="linenum">  43</span></a>              (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('act')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/act.html">act</a> = 'imagejpeg') &amp;&amp; <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mime')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mime.html">mime</a> = 'image/jpeg';
<a name="l44"><span class="linenum">  44</span></a>          } elseif (<a class="var it28" onMouseOver="hilite(28)" onMouseOut="lolite()" onClick="logVariable('tp')" href="../../../_variables/tp.html">$tp</a> &amp; IMG_PNG) {
<a name="l45"><span class="linenum">  45</span></a>              (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('act')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/act.html">act</a> = 'imagepng') &amp;&amp; <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mime')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mime.html">mime</a> = 'image/png';
<a name="l46"><span class="linenum">  46</span></a>          } elseif (<a class="var it28" onMouseOver="hilite(28)" onMouseOut="lolite()" onClick="logVariable('tp')" href="../../../_variables/tp.html">$tp</a> &amp; IMG_WBMP) {
<a name="l47"><span class="linenum">  47</span></a>              (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('act')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/act.html">act</a> = 'imagewbmp') &amp;&amp; <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mime')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mime.html">mime</a> = 'image/vnd.wap.wbmp';
<a name="l48"><span class="linenum">  48</span></a>          } else {
<a name="l49"><span class="linenum">  49</span></a>              return false;
<a name="l50"><span class="linenum">  50</span></a>          }
<a name="l51"><span class="linenum">  51</span></a>  
<a name="l52"><span class="linenum">  52</span></a>          <a class="var it29" onMouseOver="hilite(29)" onMouseOut="lolite()" onClick="logVariable('number')" href="../../../_variables/number.html">$number</a> = <a class="phpfunction" onClick="logFunction('floor')" href="../../../_functions/floor.html" onMouseOver="phpfuncPopup(event,'floor')">floor</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('height')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/height.html">height</a> * <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('width')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/width.html">width</a> / 15);
<a name="l53"><span class="linenum">  53</span></a>          if (<a class="var it29" onMouseOver="hilite(29)" onMouseOut="lolite()" onClick="logVariable('number')" href="../../../_variables/number.html">$number</a> &gt; 240 - <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('codeNum')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/codeNum.html">codeNum</a>) {
<a name="l54"><span class="linenum">  54</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('disturbColorNum')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/disturbColorNum.html">disturbColorNum</a> = 240 - <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('codeNum')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/codeNum.html">codeNum</a>;
<a name="l55"><span class="linenum">  55</span></a>          } else {
<a name="l56"><span class="linenum">  56</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('disturbColorNum')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/disturbColorNum.html">disturbColorNum</a> = <a class="var it29" onMouseOver="hilite(29)" onMouseOut="lolite()" onClick="logVariable('number')" href="../../../_variables/number.html">$number</a>;
<a name="l57"><span class="linenum">  57</span></a>          }
<a name="l58"><span class="linenum">  58</span></a>  
<a name="l59"><span class="linenum">  59</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('vercode')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/vercode.html">vercode</a> = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('createVercode')" href="../../../_functions/createvercode.html" onMouseOver="funcPopup(event,'createvercode')">createVercode</a>();
<a name="l60"><span class="linenum">  60</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('getCreateImage')" href="../../../_functions/getcreateimage.html" onMouseOver="funcPopup(event,'getcreateimage')">getCreateImage</a>();
<a name="l61"><span class="linenum">  61</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('setDisturbColor')" href="../../../_functions/setdisturbcolor.html" onMouseOver="funcPopup(event,'setdisturbcolor')">setDisturbColor</a>();
<a name="l62"><span class="linenum">  62</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('outputText')" href="../../../_functions/outputtext.html" onMouseOver="funcPopup(event,'outputtext')">outputText</a>();
<a name="l63"><span class="linenum">  63</span></a>          return <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('vercode')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/vercode.html">vercode</a>;
<a name="l64"><span class="linenum">  64</span></a>      }
<a name="l65"><span class="linenum">  65</span></a>      public function <a class="function" onClick="logFunction('Out')" href="../../../_functions/out.html" onMouseOver="funcPopup(event,'out')">Out</a>()
<a name="l66"><span class="linenum">  66</span></a>      {
<a name="l67"><span class="linenum">  67</span></a>          <a class="phpfunction" onClick="logFunction('ob_clean')" href="../../../_functions/ob_clean.html" onMouseOver="phpfuncPopup(event,'ob_clean')">ob_clean</a>();
<a name="l68"><span class="linenum">  68</span></a>          <a class="phpfunction" onClick="logFunction('header')" href="../../../_functions/header.html" onMouseOver="phpfuncPopup(event,'header')">header</a>(&quot;Content-type: {<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mime')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mime.html">mime</a>}&quot;);
<a name="l69"><span class="linenum">  69</span></a>          <a class="var it23" onMouseOver="hilite(23)" onMouseOut="lolite()" onClick="logVariable('act')" href="../../../_variables/act.html">$act</a> = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('act')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/act.html">act</a>;
<a name="l70"><span class="linenum">  70</span></a>          <a class="var it23" onMouseOver="hilite(23)" onMouseOut="lolite()" onClick="logVariable('act')" href="../../../_variables/act.html">$act</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>);
<a name="l71"><span class="linenum">  71</span></a>      }
<a name="l72"><span class="linenum">  72</span></a>      public function <a class="function" onClick="logFunction('GetCode')" href="../../../_functions/getcode.html" onMouseOver="funcPopup(event,'getcode')">GetCode</a>()
<a name="l73"><span class="linenum">  73</span></a>      {
<a name="l74"><span class="linenum">  74</span></a>          return <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('vercode')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/vercode.html">vercode</a>;
<a name="l75"><span class="linenum">  75</span></a>      }
<a name="l76"><span class="linenum">  76</span></a>      public function <a class="function" onClick="logFunction('Base64')" href="../../../_functions/base64.html" onMouseOver="funcPopup(event,'base64')">Base64</a>()
<a name="l77"><span class="linenum">  77</span></a>      {
<a name="l78"><span class="linenum">  78</span></a>          <a class="phpfunction" onClick="logFunction('ob_start')" href="../../../_functions/ob_start.html" onMouseOver="phpfuncPopup(event,'ob_start')">ob_start</a>();
<a name="l79"><span class="linenum">  79</span></a>          if (!<a class="var it30" onMouseOver="hilite(30)" onMouseOut="lolite()" onClick="logVariable('create')" href="../../../_variables/create.html">$create</a> = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('Create')" href="../../../_functions/create.html" onMouseOver="funcPopup(event,'create')">Create</a>()) {
<a name="l80"><span class="linenum">  80</span></a>              die('不支持创建图像资源');
<a name="l81"><span class="linenum">  81</span></a>          }
<a name="l82"><span class="linenum">  82</span></a>  
<a name="l83"><span class="linenum">  83</span></a>          <a class="var it23" onMouseOver="hilite(23)" onMouseOut="lolite()" onClick="logVariable('act')" href="../../../_variables/act.html">$act</a> = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('act')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/act.html">act</a>;
<a name="l84"><span class="linenum">  84</span></a>          <a class="var it23" onMouseOver="hilite(23)" onMouseOut="lolite()" onClick="logVariable('act')" href="../../../_variables/act.html">$act</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>);
<a name="l85"><span class="linenum">  85</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image_data')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image_data.html">image_data</a> = <a class="phpfunction" onClick="logFunction('ob_get_contents')" href="../../../_functions/ob_get_contents.html" onMouseOver="phpfuncPopup(event,'ob_get_contents')">ob_get_contents</a>();
<a name="l86"><span class="linenum">  86</span></a>          <a class="phpfunction" onClick="logFunction('ob_end_clean')" href="../../../_functions/ob_end_clean.html" onMouseOver="phpfuncPopup(event,'ob_end_clean')">ob_end_clean</a>();
<a name="l87"><span class="linenum">  87</span></a>          <a class="var it31" onMouseOver="hilite(31)" onMouseOut="lolite()" onClick="logVariable('base64_image')" href="../../../_variables/base64_image.html">$base64_image</a> = &quot;data:{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mime')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mime.html">mime</a>};base64,&quot; . <a class="phpfunction" onClick="logFunction('chunk_split')" href="../../../_functions/chunk_split.html" onMouseOver="phpfuncPopup(event,'chunk_split')">chunk_split</a>(<a class="phpfunction" onClick="logFunction('base64_encode')" href="../../../_functions/base64_encode.html" onMouseOver="phpfuncPopup(event,'base64_encode')">base64_encode</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image_data')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image_data.html">image_data</a>));
<a name="l88"><span class="linenum">  88</span></a>          return <a class="var it31" onMouseOver="hilite(31)" onMouseOut="lolite()" onClick="logVariable('base64_image')" href="../../../_variables/base64_image.html">$base64_image</a>;
<a name="l89"><span class="linenum">  89</span></a>      }
<a name="l90"><span class="linenum">  90</span></a>  
<a name="l91"><span class="linenum">  91</span></a>      <span class="comment">/**</span>
<a name="l92"><span class="linenum">  92</span></a>  <span class="comment">     * 输出图像并把验证码保存到SESSION</span>
<a name="l93"><span class="linenum">  93</span></a>  <span class="comment">     * @param  string $name [SESSION中验证码的键名]</span>
<a name="l94"><span class="linenum">  94</span></a>  <span class="comment">     * @return [type]       [description]</span>
<a name="l95"><span class="linenum">  95</span></a>  <span class="comment">     */</span>
<a name="l96"><span class="linenum">  96</span></a>      public function <a class="function" onClick="logFunction('Img')" href="../../../_functions/img.html" onMouseOver="funcPopup(event,'img')">Img</a>(<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a> = '_verimgcode')
<a name="l97"><span class="linenum">  97</span></a>      {
<a name="l98"><span class="linenum">  98</span></a>          if (!<a class="var it30" onMouseOver="hilite(30)" onMouseOut="lolite()" onClick="logVariable('create')" href="../../../_variables/create.html">$create</a> = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('Create')" href="../../../_functions/create.html" onMouseOver="funcPopup(event,'create')">Create</a>()) {
<a name="l99"><span class="linenum">  99</span></a>              die('不支持创建图像资源');
<a name="l100"><span class="linenum"> 100</span></a>          }
<a name="l101"><span class="linenum"> 101</span></a>  
<a name="l102"><span class="linenum"> 102</span></a>          <a class="var it33" onMouseOver="hilite(33)" onMouseOut="lolite()" onClick="logVariable('_SESSION')" href="../../../_variables/_SESSION.html">$_SESSION</a>[<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>] = md5(<a class="phpfunction" onClick="logFunction('strtolower')" href="../../../_functions/strtolower.html" onMouseOver="phpfuncPopup(event,'strtolower')">strtolower</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('vercode')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/vercode.html">vercode</a>));
<a name="l103"><span class="linenum"> 103</span></a>          <a class="phpfunction" onClick="logFunction('ob_clean')" href="../../../_functions/ob_clean.html" onMouseOver="phpfuncPopup(event,'ob_clean')">ob_clean</a>();
<a name="l104"><span class="linenum"> 104</span></a>          <a class="phpfunction" onClick="logFunction('header')" href="../../../_functions/header.html" onMouseOver="phpfuncPopup(event,'header')">header</a>(&quot;Content-type: {<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mime')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mime.html">mime</a>}&quot;);
<a name="l105"><span class="linenum"> 105</span></a>          <a class="var it23" onMouseOver="hilite(23)" onMouseOut="lolite()" onClick="logVariable('act')" href="../../../_variables/act.html">$act</a> = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('act')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/act.html">act</a>;
<a name="l106"><span class="linenum"> 106</span></a>          <a class="var it23" onMouseOver="hilite(23)" onMouseOut="lolite()" onClick="logVariable('act')" href="../../../_variables/act.html">$act</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>);
<a name="l107"><span class="linenum"> 107</span></a>      }
<a name="l108"><span class="linenum"> 108</span></a>  
<a name="l109"><span class="linenum"> 109</span></a>      <span class="comment">/**</span>
<a name="l110"><span class="linenum"> 110</span></a>  <span class="comment">     * 检查验证码是否正确</span>
<a name="l111"><span class="linenum"> 111</span></a>  <span class="comment">     * @param  string $code [用户输入的验证码（不区分大小写）]</span>
<a name="l112"><span class="linenum"> 112</span></a>  <span class="comment">     * @param  string $name [SESSION中保存验证码的键名]</span>
<a name="l113"><span class="linenum"> 113</span></a>  <span class="comment">     * @return boolean      [description]</span>
<a name="l114"><span class="linenum"> 114</span></a>  <span class="comment">     */</span>
<a name="l115"><span class="linenum"> 115</span></a>      public static function <a class="function" onClick="logFunction('Check')" href="../../../_functions/check.html" onMouseOver="funcPopup(event,'check')">Check</a>(<a class="var it34" onMouseOver="hilite(34)" onMouseOut="lolite()" onClick="logVariable('code')" href="../../../_variables/code.html">$code</a>, <a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a> = '_verimgcode')
<a name="l116"><span class="linenum"> 116</span></a>      {
<a name="l117"><span class="linenum"> 117</span></a>          if (md5(<a class="phpfunction" onClick="logFunction('strtolower')" href="../../../_functions/strtolower.html" onMouseOver="phpfuncPopup(event,'strtolower')">strtolower</a>(<a class="var it34" onMouseOver="hilite(34)" onMouseOut="lolite()" onClick="logVariable('code')" href="../../../_variables/code.html">$code</a>)) == <a class="var it33" onMouseOver="hilite(33)" onMouseOut="lolite()" onClick="logVariable('_SESSION')" href="../../../_variables/_SESSION.html">$_SESSION</a>[<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>]) {
<a name="l118"><span class="linenum"> 118</span></a>              unset(<a class="var it33" onMouseOver="hilite(33)" onMouseOut="lolite()" onClick="logVariable('_SESSION')" href="../../../_variables/_SESSION.html">$_SESSION</a>[<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>]);
<a name="l119"><span class="linenum"> 119</span></a>              return true;
<a name="l120"><span class="linenum"> 120</span></a>          } else {
<a name="l121"><span class="linenum"> 121</span></a>              return false;
<a name="l122"><span class="linenum"> 122</span></a>          }
<a name="l123"><span class="linenum"> 123</span></a>  
<a name="l124"><span class="linenum"> 124</span></a>      }
<a name="l125"><span class="linenum"> 125</span></a>  
<a name="l126"><span class="linenum"> 126</span></a>      private function <a class="function" onClick="logFunction('getCreateImage')" href="../../../_functions/getcreateimage.html" onMouseOver="funcPopup(event,'getcreateimage')">getCreateImage</a>()
<a name="l127"><span class="linenum"> 127</span></a>      {
<a name="l128"><span class="linenum"> 128</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a> = <a class="phpfunction" onClick="logFunction('imagecreatetruecolor')" href="../../../_functions/imagecreatetruecolor.html" onMouseOver="phpfuncPopup(event,'imagecreatetruecolor')">imagecreatetruecolor</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('width')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/width.html">width</a>, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('height')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/height.html">height</a>);
<a name="l129"><span class="linenum"> 129</span></a>          <a class="var it35" onMouseOver="hilite(35)" onMouseOut="lolite()" onClick="logVariable('backColor')" href="../../../_variables/backColor.html">$backColor</a> = <a class="phpfunction" onClick="logFunction('imagecolorallocate')" href="../../../_functions/imagecolorallocate.html" onMouseOver="phpfuncPopup(event,'imagecolorallocate')">imagecolorallocate</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(150, 255), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(150, 255), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(150, 255)); <span class="comment">//背景色（随机）</span>
<a name="l130"><span class="linenum"> 130</span></a>          @<a class="phpfunction" onClick="logFunction('imagefill')" href="../../../_functions/imagefill.html" onMouseOver="phpfuncPopup(event,'imagefill')">imagefill</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, 0, 0, <a class="var it35" onMouseOver="hilite(35)" onMouseOut="lolite()" onClick="logVariable('backColor')" href="../../../_variables/backColor.html">$backColor</a>);
<a name="l131"><span class="linenum"> 131</span></a>      }
<a name="l132"><span class="linenum"> 132</span></a>  
<a name="l133"><span class="linenum"> 133</span></a>      <span class="comment">/**</span>
<a name="l134"><span class="linenum"> 134</span></a>  <span class="comment">     * 随机生成指定个数的字符,去掉容易混淆的字符oOLlz和数字012</span>
<a name="l135"><span class="linenum"> 135</span></a>  <span class="comment">     * @return [string] [description]</span>
<a name="l136"><span class="linenum"> 136</span></a>  <span class="comment">     */</span>
<a name="l137"><span class="linenum"> 137</span></a>      private function <a class="function" onClick="logFunction('createVercode')" href="../../../_functions/createvercode.html" onMouseOver="funcPopup(event,'createvercode')">createVercode</a>()
<a name="l138"><span class="linenum"> 138</span></a>      {
<a name="l139"><span class="linenum"> 139</span></a>          <a class="var it36" onMouseOver="hilite(36)" onMouseOut="lolite()" onClick="logVariable('str')" href="../../../_variables/str.html">$str</a> = '';
<a name="l140"><span class="linenum"> 140</span></a>          <a class="var it34" onMouseOver="hilite(34)" onMouseOut="lolite()" onClick="logVariable('code')" href="../../../_variables/code.html">$code</a> = &quot;3456789abcdefghijkmnpqrstuvwxyABCDEFGHIJKMNPQRSTUVWXY&quot;;
<a name="l141"><span class="linenum"> 141</span></a>          for (<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> = 0; <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> &lt; <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('codeNum')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/codeNum.html">codeNum</a>; ++<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>) {
<a name="l142"><span class="linenum"> 142</span></a>              <a class="var it38" onMouseOver="hilite(38)" onMouseOut="lolite()" onClick="logVariable('char')" href="../../../_variables/char.html">$char</a> = <a class="var it34" onMouseOver="hilite(34)" onMouseOut="lolite()" onClick="logVariable('code')" href="../../../_variables/code.html">$code</a>[<a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(0, strlen(<a class="var it34" onMouseOver="hilite(34)" onMouseOut="lolite()" onClick="logVariable('code')" href="../../../_variables/code.html">$code</a>) - 1)];
<a name="l143"><span class="linenum"> 143</span></a>              <a class="var it36" onMouseOver="hilite(36)" onMouseOut="lolite()" onClick="logVariable('str')" href="../../../_variables/str.html">$str</a> .= <a class="var it38" onMouseOver="hilite(38)" onMouseOut="lolite()" onClick="logVariable('char')" href="../../../_variables/char.html">$char</a>;
<a name="l144"><span class="linenum"> 144</span></a>          }
<a name="l145"><span class="linenum"> 145</span></a>          return <a class="var it36" onMouseOver="hilite(36)" onMouseOut="lolite()" onClick="logVariable('str')" href="../../../_variables/str.html">$str</a>;
<a name="l146"><span class="linenum"> 146</span></a>      }
<a name="l147"><span class="linenum"> 147</span></a>  
<a name="l148"><span class="linenum"> 148</span></a>      <span class="comment">/**</span>
<a name="l149"><span class="linenum"> 149</span></a>  <span class="comment">     * 添加干扰</span>
<a name="l150"><span class="linenum"> 150</span></a>  <span class="comment">     */</span>
<a name="l151"><span class="linenum"> 151</span></a>      private function <a class="function" onClick="logFunction('setDisturbColor')" href="../../../_functions/setdisturbcolor.html" onMouseOver="funcPopup(event,'setdisturbcolor')">setDisturbColor</a>()
<a name="l152"><span class="linenum"> 152</span></a>      {
<a name="l153"><span class="linenum"> 153</span></a>          <a class="phpfunction" onClick="logFunction('imagesetthickness')" href="../../../_functions/imagesetthickness.html" onMouseOver="phpfuncPopup(event,'imagesetthickness')">imagesetthickness</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(3, 6));
<a name="l154"><span class="linenum"> 154</span></a>          for (<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> = 0; <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> &lt; 3; <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>++) {
<a name="l155"><span class="linenum"> 155</span></a>              <a class="var it39" onMouseOver="hilite(39)" onMouseOut="lolite()" onClick="logVariable('color')" href="../../../_variables/color.html">$color</a> = <a class="phpfunction" onClick="logFunction('imagecolorallocate')" href="../../../_functions/imagecolorallocate.html" onMouseOver="phpfuncPopup(event,'imagecolorallocate')">imagecolorallocate</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(100, 200), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(100, 200), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(100, 200));
<a name="l156"><span class="linenum"> 156</span></a>              <a class="phpfunction" onClick="logFunction('imagearc')" href="../../../_functions/imagearc.html" onMouseOver="phpfuncPopup(event,'imagearc')">imagearc</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(-10, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('width')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/width.html">width</a> - 10), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(-10, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('height')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/height.html">height</a> - 10), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(30, 2 * <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('width')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/width.html">width</a> - 4), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(20, 2 * <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('height')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/height.html">height</a>), 50, 20, <a class="var it39" onMouseOver="hilite(39)" onMouseOut="lolite()" onClick="logVariable('color')" href="../../../_variables/color.html">$color</a>);
<a name="l157"><span class="linenum"> 157</span></a>          }
<a name="l158"><span class="linenum"> 158</span></a>          for (<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> = 0; <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> &lt; 5; <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>++) {
<a name="l159"><span class="linenum"> 159</span></a>              <a class="var it38" onMouseOver="hilite(38)" onMouseOut="lolite()" onClick="logVariable('char')" href="../../../_variables/char.html">$char</a> = <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(0, 9);
<a name="l160"><span class="linenum"> 160</span></a>              <a class="var it39" onMouseOver="hilite(39)" onMouseOut="lolite()" onClick="logVariable('color')" href="../../../_variables/color.html">$color</a> = <a class="phpfunction" onClick="logFunction('imagecolorallocate')" href="../../../_functions/imagecolorallocate.html" onMouseOver="phpfuncPopup(event,'imagecolorallocate')">imagecolorallocate</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(150, 255), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(150, 255), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(150, 255));
<a name="l161"><span class="linenum"> 161</span></a>              <a class="phpfunction" onClick="logFunction('imagechar')" href="../../../_functions/imagechar.html" onMouseOver="phpfuncPopup(event,'imagechar')">imagechar</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, 5, <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(1, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('width')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/width.html">width</a> - 2), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(1, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('height')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/height.html">height</a> - 2), <a class="var it38" onMouseOver="hilite(38)" onMouseOut="lolite()" onClick="logVariable('char')" href="../../../_variables/char.html">$char</a>, <a class="var it39" onMouseOver="hilite(39)" onMouseOut="lolite()" onClick="logVariable('color')" href="../../../_variables/color.html">$color</a>);
<a name="l162"><span class="linenum"> 162</span></a>          }
<a name="l163"><span class="linenum"> 163</span></a>      }
<a name="l164"><span class="linenum"> 164</span></a>  
<a name="l165"><span class="linenum"> 165</span></a>      <span class="comment">/**</span>
<a name="l166"><span class="linenum"> 166</span></a>  <span class="comment">     * 随机颜色、随机摆放、</span>
<a name="l167"><span class="linenum"> 167</span></a>  <span class="comment">     * @return [type] [description]</span>
<a name="l168"><span class="linenum"> 168</span></a>  <span class="comment">     */</span>
<a name="l169"><span class="linenum"> 169</span></a>      private function <a class="function" onClick="logFunction('outputText')" href="../../../_functions/outputtext.html" onMouseOver="funcPopup(event,'outputtext')">outputText</a>()
<a name="l170"><span class="linenum"> 170</span></a>      {
<a name="l171"><span class="linenum"> 171</span></a>          for (<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> = 0; <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> != <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('codeNum')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/codeNum.html">codeNum</a>; ++<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>) {
<a name="l172"><span class="linenum"> 172</span></a>              <a class="var it40" onMouseOver="hilite(40)" onMouseOut="lolite()" onClick="logVariable('fontcolor')" href="../../../_variables/fontcolor.html">$fontcolor</a> = <a class="phpfunction" onClick="logFunction('imagecolorallocate')" href="../../../_functions/imagecolorallocate.html" onMouseOver="phpfuncPopup(event,'imagecolorallocate')">imagecolorallocate</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(0, 128), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(0, 128), <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(0, 128));
<a name="l173"><span class="linenum"> 173</span></a>              <a class="var it41" onMouseOver="hilite(41)" onMouseOut="lolite()" onClick="logVariable('ii')" href="../../../_variables/ii.html">$ii</a> = <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(-30, 30);
<a name="l174"><span class="linenum"> 174</span></a>              <a class="var it42" onMouseOver="hilite(42)" onMouseOut="lolite()" onClick="logVariable('x')" href="../../../_variables/x.html">$x</a> = <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> ? <a class="phpfunction" onClick="logFunction('floor')" href="../../../_functions/floor.html" onMouseOver="phpfuncPopup(event,'floor')">floor</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('width')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/width.html">width</a> / <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('codeNum')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/codeNum.html">codeNum</a>) * <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> + <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(-3, 5) : 5;
<a name="l175"><span class="linenum"> 175</span></a>              <a class="var it43" onMouseOver="hilite(43)" onMouseOut="lolite()" onClick="logVariable('y')" href="../../../_variables/y.html">$y</a> = <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>((<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('fontSize')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/fontSize.html">fontSize</a> + 5), (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('height')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/height.html">height</a> - 5));
<a name="l176"><span class="linenum"> 176</span></a>              <a class="phpfunction" onClick="logFunction('imagettftext')" href="../../../_functions/imagettftext.html" onMouseOver="phpfuncPopup(event,'imagettftext')">imagettftext</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('fontSize')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/fontSize.html">fontSize</a>, <a class="var it41" onMouseOver="hilite(41)" onMouseOut="lolite()" onClick="logVariable('ii')" href="../../../_variables/ii.html">$ii</a>, <a class="var it42" onMouseOver="hilite(42)" onMouseOut="lolite()" onClick="logVariable('x')" href="../../../_variables/x.html">$x</a>, <a class="var it43" onMouseOver="hilite(43)" onMouseOut="lolite()" onClick="logVariable('y')" href="../../../_variables/y.html">$y</a>, <a class="var it40" onMouseOver="hilite(40)" onMouseOut="lolite()" onClick="logVariable('fontcolor')" href="../../../_variables/fontcolor.html">$fontcolor</a>, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('ttf')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/ttf.html">ttf</a>, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('vercode')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/vercode.html">vercode</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]);
<a name="l177"><span class="linenum"> 177</span></a>          }
<a name="l178"><span class="linenum"> 178</span></a>      }
<a name="l179"><span class="linenum"> 179</span></a>  
<a name="l180"><span class="linenum"> 180</span></a>      <span class="comment">/**</span>
<a name="l181"><span class="linenum"> 181</span></a>  <span class="comment">     * 销毁图像资源释放内存</span>
<a name="l182"><span class="linenum"> 182</span></a>  <span class="comment">     */</span>
<a name="l183"><span class="linenum"> 183</span></a>      public function <a class="function" onClick="logFunction('__destruct')" href="../../../_functions/__destruct.html" onMouseOver="funcPopup(event,'__destruct')">__destruct</a>()
<a name="l184"><span class="linenum"> 184</span></a>      {
<a name="l185"><span class="linenum"> 185</span></a>          <a class="phpfunction" onClick="logFunction('imagedestroy')" href="../../../_functions/imagedestroy.html" onMouseOver="phpfuncPopup(event,'imagedestroy')">imagedestroy</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('image')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/image.html">image</a>);
<a name="l186"><span class="linenum"> 186</span></a>      }
<a name="l187"><span class="linenum"> 187</span></a>  }
</pre>
</div>
<script language="JavaScript" type="text/javascript">
FUNC_DATA={
'__construct': ['__construct', '', [['base','model.class.php',6],['core/v0.1/ext','verimg.class.php',18],['core/v0.1/ext','db.class.php',47],['core/v0.1/ext','upload.class.php',28],['core/v0.1/z','pdo.class.php',23]], 0],
'out': ['out', '', [['core/v0.1/ext','verimg.class.php',65]], 0],
'getcreateimage': ['getcreateimage', '', [['core/v0.1/ext','verimg.class.php',126]], 1],
'outputtext': ['outputtext', '随机颜色、随机摆放、 ', [['core/v0.1/ext','verimg.class.php',165]], 1],
'createvercode': ['createvercode', '随机生成指定个数的字符,去掉容易混淆的字符oOLlz和数字012 ', [['core/v0.1/ext','verimg.class.php',133]], 1],
'getcode': ['getcode', '', [['core/v0.1/ext','verimg.class.php',72]], 0],
'set': ['set', '', [['core/v0.1/ext','verimg.class.php',33],['core/v0.1/ext','upload.class.php',51]], 12],
'create': ['create', '', [['core/v0.1/ext','verimg.class.php',37]], 2],
'img': ['img', '输出图像并把验证码保存到SESSION ', [['core/v0.1/ext','verimg.class.php',91]], 0],
'base64': ['base64', '', [['core/v0.1/ext','verimg.class.php',76]], 0],
'setdisturbcolor': ['setdisturbcolor', '添加干扰 ', [['core/v0.1/ext','verimg.class.php',148]], 1],
'check': ['check', '检查验证码是否正确 ', [['core/v0.1/ext','verimg.class.php',109],['core/v0.1/ext','upload.class.php',257]], 2],
'__destruct': ['__destruct', '销毁图像资源释放内存 ', [['core/v0.1/ext','verimg.class.php',180],['core/v0.1/z','pdo.class.php',350]], 0],
'chunk_split': ['chunk_split', '', [], 1],
'ob_get_contents': ['ob_get_contents', '', [], 2],
'floor': ['floor', '', [], 2],
'mt_rand': ['mt_rand', '', [], 26],
'strtolower': ['strtolower', '', [], 7],
'imagesetthickness': ['imagesetthickness', '', [], 1],
'base64_encode': ['base64_encode', '', [], 1],
'imagearc': ['imagearc', '', [], 1],
'ob_start': ['ob_start', '', [], 3],
'imagecolorallocate': ['imagecolorallocate', '', [], 4],
'imagefill': ['imagefill', '', [], 1],
'imagechar': ['imagechar', '', [], 1],
'imagecreatetruecolor': ['imagecreatetruecolor', '', [], 1],
'ob_clean': ['ob_clean', '', [], 2],
'imagetypes': ['imagetypes', '', [], 1],
'imagedestroy': ['imagedestroy', '', [], 1],
'imagettftext': ['imagettftext', '', [], 1],
'ob_end_clean': ['ob_end_clean', '', [], 7],
'header': ['header', '', [], 6]};
CLASS_DATA={
'verimg': ['verimg', '', [['core/v0.1/ext','verimg.class.php',4]], 0]};
CONST_DATA={
'P_CORE': ['P_CORE', '', [['core/v0.1','core.php',24]], 10]};
</script>
<div id="func-popup" class="funcpopup"><p id="func-title" class="popup-title">title</p><p id="func-desc" class="popup-desc">Description</p><p id="func-body" class="popup-body">Body</p></div>
<div id="class-popup" class="funcpopup"><p id="class-title" class="popup-title">title</p><p id="class-desc" class="popup-desc">Description</p><p id="class-body" class="popup-body">Body</p></div>
<div id="const-popup" class="funcpopup"><p id="const-title" class="popup-title">title</p><p id="const-desc" class="popup-desc">Description</p><p id="const-body" class="popup-body">Body</p></div>
<div id="req-popup" class="funcpopup"><p id="req-title" class="popup-title">title</p><p id="req-body" class="popup-body">Body</p></div>
<!-- A link to the phpxref site in your customized footer file is appreciated ;-) -->
<br><hr>
<table width="100%">
	<tr><td>Generated: Thu Sep 10 15:54:52 2020</td>
	<td align="right"><i>Cross-referenced by <a href="http://phpxref.sourceforge.net/">PHPXref 0.7.1</a></i></td>
	</tr>
</table>
</body></html>
